<template>
	<view class="wrap-content-info" v-if="dataInfo">
		<view class="wrap-info flex column">
			<view class="title fBold f-36">{{ dataInfo.title }}</view>

			<view class="time f-26">{{ dataInfo.createtime_text }}</view>
		</view>

		<view class="wrap-content">
			<uParse :html="dataInfo.content" />
		</view>
	</view>
</template>

<script>
	import uParse from "@/components/uParse/uParse.vue";
	export default {
		components: {
			uParse,
		},
		props: {
			/**
			 * 数据
			 */
			dataInfo: {
				type: Object,
				default: null,
			},
		},
	};
</script>

<style lang="scss" scoped>
	.wrap-content-info {
		width: 100%;
		overflow: hidden;

		.wrap-info {
			width: 100%;
			padding-bottom: 27rpx;
			box-sizing: border-box;
			border-bottom: 2rpx solid #eeeeee;
			gap: 20rpx;

			.title {
				color: #121212;
				line-height: 1.2em;
			}

			.time {
				color: #888888;
			}
		}

		.wrap-content {
			margin-top: 30rpx;
			width: 100%;
			overflow: hidden;
			color: #666666;
			line-height: 1.2em;
			padding-bottom: 20rpx;
		}
	}
</style>
